﻿using IcsSEMCtrl.Event.Device;
using System;

namespace TKT.Lifter.CIM.Lifter.Event.Lifter
{
    [Serializable]
    public class SensorEvent : DeviceEvent
    {
        private short Value;
        private string Name;
        public static readonly string CLASS = "SensorEvent";
        public static readonly string SPECIFIC_SUBJECT = "Sensor";
        public new static readonly string SUBJECT = DeviceEvent.SUBJECT + "." + SensorEvent.SPECIFIC_SUBJECT;
        public SensorEvent(string deviceId, string deviceType, string name, short value) : base(deviceId, deviceType)
        {
            this.Value1 = value;
            this.Name1 = name;
        }
        public new static string FormSubject(string id)
        {
            return SensorEvent.SUBJECT + "." + id;
        }
        public short Value1 { get => Value; set => Value = value; }
        public string Name1 { get => Name; set => Name = value; }
    }
}
